home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 2.3 KB | 86 lines | [TEXT/CWIE] |
- // CAdd.h -- dialog class
-
- #pragma once
-
- #include <LGADialog.h>
-
- #include "DReminder.h"
-
- class LStream;
-
- class LPushButton;
- class LPictureControl;
- class LStaticText;
- class LClock;
- class LEditText;
- class LCheckBox;
- class LPopupButton;
-
-
- //----------
- class CAdd : public LGADialog {
- public: // these comprise the programming interface for using the dialog
- static CAdd* CreateAdd (LCommander* inSuperCommander,
- CommandT inCommand,
- DReminder* inData);
- virtual void SetFromData (DReminder* inData);
- virtual DReminder* GetData ();
-
- // these functions will be obsoleted
- // retained only for backwards compatibility
- // virtual Ptr GetDate2FieldDate ();
- // virtual void SetDate2FieldDate (Date inText);
- // virtual Ptr GetTime2FieldDate ();
- // virtual void SetTime2FieldDate (Date inText);
- virtual void GetMessage2FieldString (Str255 str);
- virtual void SetMessage2FieldString (ConstStr255Param str);
- virtual Boolean GetDisplayIconChoice();
- virtual void SetDisplayIconChoice (Boolean inChoice);
- virtual Boolean GetDisplayAlertChoice();
- virtual void SetDisplayAlertChoice (Boolean inChoice);
- virtual Boolean GetPlaySoundChoice();
- virtual void SetPlaySoundChoice (Boolean inChoice);
- virtual short GetSoundPopupPopupChoice();
- virtual void SetSoundPopupPopupChoice (short choice);
-
-
- public: // these comprise the implementation
- enum { class_ID = 'Add ' };
-
- CAdd (LStream* inStream);
- virtual ~CAdd();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
- virtual void DataChanged (long inDataID);
-
- protected:
- static Boolean sIsRegistered;
- CommandT mCommand;
-
- LPushButton* mOKButton;
- LPushButton* mCancelButton;
- LClock* mDate2Field;
- LClock* mTime2Field;
- LEditText* mMessage2Field;
- LCheckBox* mDisplayIconCheck;
- LCheckBox* mDisplayAlertCheck;
- LCheckBox* mPlaySoundCheck;
- LPopupButton* mSoundPopupPopup;
-
- DReminder* mData;
-
- };
-